
#ifndef _MEMBER_BEVENTFILTER_H_
#define _MEMBER_BEVENTFILTER_H_

#include <BWidget>
#include <BEventFilter>

#define filter_member(filter)			((member_BEventFilter*)((BEventFilter*)filter)->_ptr)

namespace BWE
{
	class member_BEventFilter
	{
	public:
		member_BEventFilter(BEventFilter* eventFilter);
		~member_BEventFilter();

		void setWidget(BWidget* widget);

		void dispenseEvent(const BEvent& event);

		BEventFilter*		boss;
		BWidget*			host;
		BEventFilter*		parent;
		BEventFilterHolderArray	children;

	};
}

#endif
